// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import "es6-promise/auto";
import Vuex from "vuex";
import "lib-flexible/flexible.js";
import App from "./App";
import router from "./config/router";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import { GlobalPlugin } from "./plugin/global.js";
import axios from "axios";
import VueAxios from "vue-axios";
// import store from "./plugin/state";

Vue.config.productionTip = false;
Vue.prototype.$api = "/Api";
Vue.prototype.$qs = require("querystring");
// Vue.use(GlobalPlugin);
Vue.use(VueAxios, axios);
Vue.use(Vuex);
Vue.use(ElementUI);

// store.commit("increment");

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  // store,
  components: { App },
  template: "<app></app>"
});
